package com.example.administrator.myapplication;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

/**
 * Created by Administrator on 2016/12/14.
 */
public class OneAdapter extends BaseAdapter {

    private LayoutInflater inflater;
    public OneAdapter(LayoutInflater inflater){
        this.inflater = inflater;
    }
    @Override
    public int getCount() {
        return 2000;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        if(convertView == null){
            View view = inflater.inflate(R.layout.one_itme,null);
            return view;
        }else {
            return convertView;
        }
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }
}
